%option noyywrap
%{
#include<string.h>
#include<stdlib.h>
#include<stdio.h>

int counter=0;
long int temp=0;
static char *ids = "201492021";
static char *names ="LJR";
%}

%%

^([0-9]+) {
         if(yyleng==9)
     {
	     printf("%s", ids);
	 }
	 else
	 {
	      temp=(long int)(atoi(yytext)*2 + atoi(ids));
	      printf("%ld\n",temp);
	      counter++;
	 }
}
NAME$ {
          printf("%s",names);
	  }

([1-9][0-9]*|0) {
	temp=(long long int)(atoi(yytext) * 2 + atoi(ids));
       printf("%ld\n",temp);
       counter++;
       }
([1-9]+\.[0-9]+)  {
        printf("%ld", (long long int)(atof(yytext) *2 + atoi(ids)+0.5));
	counter++;
	}
. {ECHO;}

%%

int main()
{
yylex();
printf("%d",counter);
return 0;
}